PROJECT(main)
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)

INCLUDE_DIRECTORIES(.)
INCLUDE_DIRECTORIES(..)
INCLUDE_DIRECTORIES(../../include)

AUX_SOURCE_DIRECTORY(. DIR_SRCS)
AUX_SOURCE_DIRECTORY(.. DIR_SRCS)
AUX_SOURCE_DIRECTORY(../.. DIR_SRCS)

SET(CMAKE_C_FLAGS -O1)
SET(CMAKE_CXX_FLAGS -O1)
ADD_EXECUTABLE(main ${DIR_SRCS})
TARGET_LINK_LIBRARIES(main pthread rt dl c)
